/**
 * 
 */
package com.thor.palmmall.hdmall.sales;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thor.commons.entity.UCN;

/**
 * @author liyang
 *
 * @since 1.0
 */
public class HDMSalesInput implements Serializable {

  private static final long serialVersionUID = 1226848783994524407L;

  /** 项目 */
  private UCN store;
  /** 商户 */
  private UCN tenant;
  /** 合同 */
  private UCN contract;
  /** 用户代码 */
  private String oper;
  /** market("购物中心"), tenant("商户"), contract("合同");默认合同 */
  private String receiver;
  /** 默认false，暂无用处 */
  private boolean balance;
  /** 销售日期 */
  @JsonFormat(pattern="yyyy-MM-dd")
  private Date saleDate;
  /** 销售笔数 */
  private Integer saleCount;
  /** 付款信息 */
  private List<HDMSalesInputLine> payments = new ArrayList<HDMSalesInputLine>();
  /** 图片文件集合 */
  private List<String> mediaFiles = new ArrayList<String>();
  /** 单号 */
  private String billNumber;
  /** 状态 */
  private String state;

  public UCN getStore() {
    return store;
  }

  public void setStore(UCN store) {
    this.store = store;
  }

  public UCN getTenant() {
    return tenant;
  }

  public void setTenant(UCN tenant) {
    this.tenant = tenant;
  }

  public UCN getContract() {
    return contract;
  }

  public void setContract(UCN contract) {
    this.contract = contract;
  }

  public String getReceiver() {
    return receiver;
  }

  public void setReceiver(String receiver) {
    this.receiver = receiver;
  }

  public boolean isBalance() {
    return balance;
  }

  public void setBalance(boolean balance) {
    this.balance = balance;
  }

  public Date getSaleDate() {
    return saleDate;
  }

  public void setSaleDate(Date saleDate) {
    this.saleDate = saleDate;
  }

  public Integer getSaleCount() {
    return saleCount;
  }

  public void setSaleCount(Integer saleCount) {
    this.saleCount = saleCount;
  }

  public List<HDMSalesInputLine> getPayments() {
    return payments;
  }

  public void setPayments(List<HDMSalesInputLine> payments) {
    this.payments = payments;
  }

  public List<String> getMediaFiles() {
    return mediaFiles;
  }

  public void setMediaFiles(List<String> mediaFiles) {
    this.mediaFiles = mediaFiles;
  }

  public String getOper() {
    return oper;
  }

  public void setOper(String oper) {
    this.oper = oper;
  }

  public String getBillNumber() {
    return billNumber;
  }

  public void setBillNumber(String billNumber) {
    this.billNumber = billNumber;
  }

  public String getState() {
    return state;
  }

  public void setState(String state) {
    this.state = state;
  }

}
